Net Stop MSExchangeTransport
Net Stop MSExchangeRPC
Net Stop W3SVC
Net Start W3SVC

$EXDIR="D:\ProcessAttachmentAndSecureText"

Write-Output "Copying files..."
Copy-Item bin\debug\ProcessAttachmentAndSecureText.dll $EXDIR -force
Copy-Item bin\debug\ProcessAttachmentAndSecureText.pdb $EXDIR -force

Net Start MSExchangeRPC
Net Start MSExchangeTransport

Write-Output "Installation complete. Please exit the Exchange Management Shell."


